package top.buyibuyi.course.controller;


import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.*;
import top.buyibuyi.course.R;
import top.buyibuyi.course.feign.SelectTeacherCourseClient;
import top.buyibuyi.course.pojo.ChooseCourse;

@RestController
@CrossOrigin
@RequestMapping("/teacher")
public class UpdateBriefController {

    @Autowired
    private SelectTeacherCourseClient selectTeacherCourseClient;

    @PostMapping("/updateBrief")
    public R updateBrief(@RequestBody ChooseCourse chooseCourse){
        System.out.println(chooseCourse);
        R r = selectTeacherCourseClient.updateBrief(chooseCourse);
        System.out.println(r);
        return r;
    }
}
